package cc.yaomm.common.basic.enums;

import cc.yaomm.common.basic.base.SuperEnum;
import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * Created by XQL on 2021/6/9.
 */
@Getter
public enum SexEnum implements SuperEnum<SexEnum, String> {

    /**
     * 男
     */
    MAN("男", "男"),
    /**
     * 女
     */
    WOMAN("女", "女");

    @EnumValue
    private String value;

    private String name;

    SexEnum(String value, String name) {
        this.value = value;
        this.name = name;
    }

    @Override
    public SexEnum[] enums() {
        return values();
    }

}
